﻿using RamGecTools;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Settings4Net_Test
{
    
    
    /// <summary>
    ///This is a test class for SettingsHashtableTest and is intended
    ///to contain all SettingsHashtableTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SettingsHashtableTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Add
        ///</summary>
        [TestMethod()]
        public void AddTest()
        {
            SettingsHashtable target = new SettingsHashtable(); // TODO: Initialize to an appropriate value
            string key = "test1"; // TODO: Initialize to an appropriate value
            string value = "value2"; // TODO: Initialize to an appropriate value
            target.Add(key, value);
            Assert.IsTrue(target.ContainsKey(key));
            Assert.IsTrue(target.ContainsValue(value));
        }

        /// <summary>
        ///A test for Item
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Settings4Net.dll")]
        public void ItemTest()
        {
            SettingsHashtable_Accessor target = new SettingsHashtable_Accessor(); // TODO: Initialize to an appropriate value
            object key = "test1"; // TODO: Initialize to an appropriate value
            object argument = true; // TODO: Initialize to an appropriate value
            object expected = null; // TODO: Initialize to an appropriate value
            object actual;
            target[key, argument] = expected;
            actual = target[key, argument];
            Assert.AreEqual(null, actual);
        }

        /// <summary>
        ///A test for Item
        ///</summary>
        [TestMethod()]
        public void ItemTest1()
        {
            SettingsHashtable target = new SettingsHashtable(); // TODO: Initialize to an appropriate value
            object key = "test"; // TODO: Initialize to an appropriate value
            object expected = "value"; // TODO: Initialize to an appropriate value
            object actual;
            target[key] = expected;
            actual = target[key];
            Assert.AreEqual(expected, actual);
        }
    }
}
